<template>
  <div class="borderBox">
    <el-row>
      <el-col :span="18" :offset="3">
        <el-table :data="datas" style="width: 100%">
          <el-table-column type="index" width="50"></el-table-column>
          <el-table-column prop="name" label="属性名称"></el-table-column>
          <el-table-column prop="desc" label="描述"></el-table-column>
          <el-table-column prop="type" label="类型"></el-table-column>
          <el-table-column prop="remark" label="备注"></el-table-column>
        </el-table>
      </el-col>
    </el-row>
    <el-row>
      <el-col :span="18" :offset="3">
        <el-card class="box-card">
          <div slot="header" class="card-header">dve-div(row)</div>
          <dve-div
            style="height:200px;width:100%;border:1px solid #eee;"
            isFlex="true"
            flexDirection="row"
          >
            <dve-div flex="0 0 30%" style="height:200px;border-right:1px solid #eee;color:#eeee">
              <span>1</span>
            </dve-div>
            <dve-div flex="1" style="height:200px;color:#eee">2</dve-div>
          </dve-div>
        </el-card>
      </el-col>
    </el-row>
    <el-row>
      <el-col :span="18" :offset="3">
        <el-card class="box-card">
          <div slot="header" class="card-header">dve-div(column)</div>
          <dve-div
            style="height:200px;width:100%;border:1px solid #eee"
            is-flex="true"
            flex-direction="column"
          >
            <dve-div flex="0 0 30%" style="width:100%;border-bottom:1px solid #eee;color:#eee">1</dve-div>
            <dve-div flex="1" style="width:100%;color:#eee">2</dve-div>
          </dve-div>
        </el-card>
      </el-col>
    </el-row>
  </div>
</template>

<script>
export default {
  data() {
    return {
      datas: [
        {
          name: "is-flex",
          desc: "是否使用flex布局",
          type: "String(true|false)",
          remark: ""
        },
        {
          name: "flex-direction",
          desc: "主轴方向",
          type: "String",
          remark: ""
        },
        {
          name: "flex-warp",
          desc: "布局是否换行",
          type: "String",
          remark: ""
        },
        {
          name: "justify-content",
          desc: "主轴上的对齐方式",
          type: "String",
          remark: ""
        },
        {
          name: "align-items",
          desc: "交叉轴上的对齐方式",
          type: "String",
          remark: ""
        },
        {
          name: "align-content",
          desc: "多根轴线的对齐方式",
          type: "String",
          remark: ""
        },
        {
          name: "order",
          desc: "排序",
          type: "String",
          remark: ""
        },
        {
          name: "flex",
          desc: "",
          type: "String",
          remark: ""
        }
      ]
    };
  }
};
</script>

<style >
.borderBox {
  height: 100%;
}
.box-card {
  background-color: #333;
}
.el-card__body {
  background-color: #333;
  text-align: center;
}
.el-col {
  height: 100%;
}
.card-header {
  color: #fff;
  text-align: left;
}
.el-card__header {
  border-bottom: 1px solid #444 !important;
  background-color: #333 !important;
}
</style>